﻿using System;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;

namespace Magicodes.WeChat.User.Dto
{
    /// <summary>
    /// 粉丝编辑信息
    /// </summary>
    [AutoMapFrom(typeof(WeChatUser))]
    public class WeChatUserEditDto : EntityDto<string>
    {
        /// <summary>
        /// 是否订阅
        /// </summary>
        public bool Subscribe { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string Country { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 语言
        /// </summary>
        public string Language { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImgUrl { get; set; }
        /// <summary>
        /// 订阅时间
        /// </summary>
        public DateTime SubscribeTime { get; set; }

        /// <summary>
        /// UnionId
        /// </summary>
        public string UnionId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 组id
        /// </summary>
        public int? GroupId { get; set; }
        /// <summary>
        /// 租户Id
        /// </summary>
        public int? TenantId { get; set; }
        /// <summary>
        /// APPID
        /// </summary>
        [MaxLength(WeChatUser.MaxAppIdLength)]
        public string AppId { get; set; }

        /// <summary>
        /// 关注事件Key
        /// </summary>
        public string EventKey { get; set; }
    }
}